import { service } from "@/utils/request";

/**
 * 
 * @param {零售-待出库};
 * @param {批量转库设置归还时间}
 * @returns 
 * 
 */
export const setDateReturn = (data: object) => {
  return service({
    url: '/retail/lib/set/dateOfReturn',
    method: 'post',
    data
  })
};

/**
 * 
 * @param {零售-待出库};
 * @param {批量转库设置归还时间}
 * @returns 
 * 
 */
export const updateRows = (data: object) => {
  return service({
    url: '/basic-data/lib/archives/update',
    method: 'post',
    data:data
  })
};

/**
 * 
 * @param {零售-档案管理批量修改失败下载};
 * @returns 
 * 
 */
export const importExcelUpdateErr = (data: object) => {
  return service({
    url: '/retail/lib/exportExcel/exportUpdateExcel',
    method: 'post',
    responseType: 'blob',
    data
  })
};

/**
 * 
 * @param {零售-档案管理批量转库失败下载};
 * @returns 
 * 
 */
export const importExcelHomeErr = (data: object) => {
  return service({
    url: '/retail/lib/exportExcel/exportTransferOfInventoryExcel',
    method: 'post',
    responseType: 'blob',
    data
  })
};

/**
 * 
 * @param {零售-档案管理新增};
 * @returns 
 * 
 */
export const insertRows = (data: object) => {
  return service({
    url: '/basic-data/lib/archives/insert',
    method: 'post',
    responseType: 'blob',
    data
  })
};
